package com.hydl.power.service;

import com.github.pagehelper.PageInfo;
import com.hydl.power.pojo.InspectionOrder;
import com.hydl.power.pojo.Inspectionplan;
import com.hydl.power.utils.Resp;
import com.hydl.power.utils.TableUtils;

import java.util.List;

public interface InspectionplanService {

    /**
     * 按条件查询
     * @return
     */
    //TableUtils selectByCondition(Integer pageNum, Integer pageSize, String taskType, String taskStatus, String maintainer, String startTime, String endTime);
    PageInfo<Inspectionplan> selectByCondition(Integer pageNum, Integer pageSize, String taskType, String taskStatus, String maintainerId, String startTime, String endTime,String token);

    /**
     * 添加计划
     * @param
     * @return
     */
    int addPlan(String taskname,String tasktype,String taskcontent,String tasktime,
                 String taskstatus,String roomname,String roomid,String maintainer,String maintainerid,String projectId,String projectName,String runmode,String cityId,String cityName);

    /**
     * 删除计划
     * @param tid
     * @return
     */
    Resp delectPlan(Integer tid);

    /**
     * 修改计划
     * @param
     * @return
     **/
    int updateByPrimaryKeySelective(String taskname,String tasktype,String taskcontent,String tasktime,
                                    String taskstatus,String maintainer,String maintainerid,String roomname,String roomid,String runmode,String projectId,String projectName,
                                    String cityId,String cityName,Integer tid);

    /**
     * 根据id查询计划
     * @param
     * @return
     **/
    Inspectionplan queryplanById(Integer tid);

    void queryplanByRunMode();



    /*
    * 查询待确认巡查工单
    * */
     List<InspectionOrder> queryStatus(String token);

    /*
     * 按照时间条件查询已完成巡查工单
     * */
    PageInfo<InspectionOrder>  queryoOffTheStocks(Integer pageNum, Integer pageSize,String token,String createTime,String dataType);
}
